#!/usr/bin/env python
#-*- coding:utf-8 -*-

'''
# Author	: cold night
# Filename	: setting.py
# Describe	: All the setting of the site
'''

import sys
from os.path import abspath, dirname, join

sys.path.insert(0, abspath(dirname(__file__)))

pwd = abspath(dirname(__file__))
# 模版路径
TEM_PATH = pwd + '/views/'

# 静态文件路径(css/js/image)
STATIC_PATH = pwd + '/static/'

# 站点信息设置
# 域名(没有写ip)
SITE_DOMAIN = '127.0.0.1:8888'


page_size = 10

# 模板参数
TEMPLATE = {
    "TEM_PATH":TEM_PATH,
    "STATIC_PATH":STATIC_PATH,
    "SITE_DOMAIN":SITE_DOMAIN,
    'pagesize':page_size
    }

# 调试开关
DEBUG = True

'''
WEB_STATIC: 如果静态文件是WEB服务器处理则设置为True(推荐)
如果是用bottle处理设置为False(不推荐)
'''
WEB_STATIC = False
